package yzserver.sx4a.form;

import yzserver.sx4a.domain.OrganizationDomain;

/**
 * Created with IntelliJ IDEA.
 * User: andrew
 * Date: 14-8-15
 * Time: 上午10:20
 * To change this template use File | Settings | File Templates.
 */
public class Organization {
    private String orgid;  //组织id注意为20位的编码例如00410088002900000000
    private String orgname;//组织名称
    private String orgparent;//父组织id注意为20位的编码例如00410088002900000000
    private String displayname;//组织全名
    private String opuser;//操作人信息
    private String startdate;//生效时间yyyy-MM-dd 如2010-03-08
    private String enddate;//失效时间yyyy-MM-dd 如2010-03-08
    private String updatedate;//更新时间yyyy-MM-dd HH:mm:ss，如2010-03-08
    private String enable;//状态（0是有效，1是失效）
    private String orgnum;//组织非20位编码的ID例如470（外部组织无）
    private String orglevel;//组织级别例如上市省公司二级（外部组织无）
    private String sort;//排序

    public Organization() {
    }

    public Organization(OrganizationDomain domain) {
        this.orgid = domain.getORGID();
        this.orgname = domain.getORGNAME();
        this.orgparent = domain.getORGPARENT();
        this.displayname = domain.getDISPLAYNAME();
        this.opuser = domain.getOPUSER();
        this.startdate = domain.getSTARTDATE();
        this.enddate = domain.getENDDATE();
        this.updatedate = domain.getUPDATEDATE();
        this.enable = domain.getENABLE();
        this.orgnum = domain.getORGNUM();
        this.orglevel = domain.getORGLEVEL();
        this.sort = domain.getSORT();

    }
    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getOrgname() {
        return orgname;
    }

    public void setOrgname(String orgname) {
        this.orgname = orgname;
    }

    public String getOrgparent() {
        return orgparent;
    }

    public void setOrgparent(String orgparent) {
        this.orgparent = orgparent;
    }

    public String getDisplayname() {
        return displayname;
    }

    public void setDisplayname(String displayname) {
        this.displayname = displayname;
    }

    public String getOpuser() {
        return opuser;
    }

    public void setOpuser(String opuser) {
        this.opuser = opuser;
    }

    public String getStartdate() {
        return startdate;
    }

    public void setStartdate(String startdate) {
        this.startdate = startdate;
    }

    public String getEnddate() {
        return enddate;
    }

    public void setEnddate(String enddate) {
        this.enddate = enddate;
    }

    public String getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(String updatedate) {
        this.updatedate = updatedate;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public String getOrgnum() {
        return orgnum;
    }

    public void setOrgnum(String orgnum) {
        this.orgnum = orgnum;
    }

    public String getOrglevel() {
        return orglevel;
    }

    public void setOrglevel(String orglevel) {
        this.orglevel = orglevel;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }
}
